//
//  CommissionCell.m
//  WGFGlobalHouses
//
//  Created by waiguofang on 15/6/5.
//  Copyright (c) 2015年 waiguofang. All rights reserved.
//

#import "CommissionCell.h"


@interface CommissionCell ()
@property (weak, nonatomic) IBOutlet UILabel *stateLab;
@property (weak, nonatomic) IBOutlet UILabel *titleLab;
@property (weak, nonatomic) IBOutlet UILabel *addressLab;
@property (weak, nonatomic) IBOutlet UILabel *priceLab;
@property (weak, nonatomic) IBOutlet UILabel *timeLab;
@property (weak, nonatomic) IBOutlet UILabel *rateLab;
@property (weak, nonatomic) IBOutlet UILabel *exceptLab;
@property (weak, nonatomic) IBOutlet UILabel *actualLab;
@property (weak, nonatomic) IBOutlet UILabel *codeLab;

@end


@implementation CommissionCell



+(instancetype) cellWithTableView:(UITableView *)tableview{


    return nil;
}

+(CGFloat)getHight:(CellBaseData*)data withTableView:(UITableView*)tableView{

    return 226;
}

-(void)setData:(CommissionData*)data{
    
    [self.stateLab setText:data.orderState];
    [self.titleLab setText:data.title];
    [self.addressLab setText:data.address];
    [self.priceLab setText:data.price];
    [self.timeLab setText:data.time];
    [self.rateLab setText:data.commissionRate];
    [self.exceptLab setText:data.exceptCommission];
    [self.actualLab setText:data.actualCommission];
    [self.codeLab setText:data.orderCode];
    [self.nameBtn setTitle:data.name forState:UIControlStateNormal];
    [self.companyBtn setTitle:data.company forState:UIControlStateNormal];

}




@end
